# coding:utf-8


class XiaoMuFather(object):
    _name: str = None

    def __init__(self, name: str = '小慕爸爸'):
        self.name = name

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, name: str):
        self._name = name

    def talk(self):
        print('小慕的爸爸说了一句话')


class XiaoMuBrother(XiaoMuFather):
    def __init__(self, name: str):
        super().__init__(name)

    def run(self):
        print(f'{self.name}在奔跑着...')

    def talk(self):
        print(f'{self.name}在说话...')


if __name__ == '__main__':
    father = XiaoMuFather()
    father.name = '小慕Father'
    father.talk()
    xatom_brother = XiaoMuBrother('小慕哥哥')
    xatom_brother.name = '小慕Bro'
    xatom_brother.run()
    # xatom_brother.talk()
